package com.turing.pre.processor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @Description
 * @Author livin
 * @Date 2021-11-10
 */
@ApiModel(value = "")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class PreProcessorTask extends BaseDo<PreProcessorTask> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("parent_task_sn")
    private String parentTaskSn;

    @TableField("task_sn")
    private String taskSn;

    @TableField("file_name")
    private String fileName;

    @TableField("file_type")
    private String fileType;

    @TableField("total_page")
    private Integer totalPage;

    @TableField("pdf_path")
    private String pdfPath;

    @TableField("original_path")
    private String originalPath;

    @TableField("clean_text_path")
    private String cleanTextPath;

    @TableField("json_path")
    private String jsonPath;

    @TableField("root_path")
    private String rootPath;

    @TableField("file_url")
    private String fileUrl;

    @TableField("clean_text_url")
    private String cleanTextUrl;

    @TableField("json_url")
    private String jsonUrl;

    /**
     * 预处理器状态
     */
    @TableField("pre_processor_status")
    private Integer preProcessorStatus;

    /**
     * 分析现状
     */
    @TableField("analysis_status")
    private Integer analysisStatus;

    @TableField("domain")
    private String domain;

    @TableField("is_del")
    private Integer isDel;

    @TableField("excel_path")
    private String excelPath;

    @TableField("txt_path")
    private String txtPath;

    @TableField("pdf_split_dir")
    private String pdfSplitDir;

    @TableField("text_dir")
    private String textDir;

    @TableField("table_dir")
    private String tableDir;

    @TableField("main_task_processing")
    private Integer mainTaskProcessing;

    @TableField("belongs_elec")
    private Integer belongsElec;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

